import { createRouter, createWebHashHistory } from 'vue-router'
import Index from '../views/index.vue'
import BusinessList from '../views/BusinessList.vue'
import BusinessInfo from '../views/BusinessInfo.vue'
import Login from '../views/Login.vue'
import Orders from '../views/Orders.vue'
import UserAddress from '../views/UserAddress.vue'
import Payment from '../views/Payment.vue'
import OrderList from '../views/OrderList.vue'
import AddUserAddress from '../views/AddUserAddress.vue'
import EditUserAddress from '../views/EditUserAddress.vue'
import Register from '../views/Register.vue'
import UserInfo from '../views/UserInfo.vue'
import alterUserInfo from '../views/AlterUserInfo.vue'
import superMember from '../views/SuperMember.vue'
import ApiTest from '../views/ApiTest.vue'
import BusinessLogin from '../views/BusinessLogin.vue'
import BusinessRegister from '../views/BusinessRegister.vue'
import BusinessManage from '../views/BusinessManage.vue'
import FoodManage from '../views/FoodManage.vue'
import BusinessOrders from '../views/BusinessOrders.vue'
import BusinessOrderDetail from '../views/BusinessOrderDetail.vue'
const routes = [{
  path: '/',
  name: 'Home',
  component: Index
}, {
  path: '/index',
  name: 'Index',
  component: Index
}, {
  path: '/businessList',
  name: 'BusinessList',
  component: BusinessList
}, {
  path: '/businessInfo',
  name: 'BusinessInfo',
  component: BusinessInfo
}, {
  path: '/login',
  name: 'Login',
  component: Login
}, {
  path: '/orders',
  name: 'Orders',
  component: Orders
}, {
  path: '/userAddress',
  name: 'UserAddress',
  component: UserAddress
}, {
  path: '/payment',
  name: 'Payment',
  component: Payment
}, {
  path: '/orderList',
  name: 'OrderList',
  component: OrderList
}, {
  path: '/addUserAddress',
  name: 'AddUserAddress',
  component: AddUserAddress
}, {
  path: '/editUserAddress',
  name: 'EditUserAddress',
  component: EditUserAddress
}, {
  path: '/register',
  name: 'Register',
  component: Register
}, {
  path: '/userInfo',
  name: 'UserInfo',
  component: UserInfo
}, {
  path: '/alterUserInfo',
  name: 'AlterUserInfo',
  component: alterUserInfo
}, {
  path: '/superMember',
  name: 'SuperMember',
  component: superMember
}, {
  path: '/apiTest',
  name: 'ApiTest',
  component: ApiTest
}, {
  path: '/businessLogin',
  name: 'BusinessLogin',
  component: BusinessLogin
}, {
  path: '/businessRegister',
  name: 'BusinessRegister',
  component: BusinessRegister
}, {
  path: '/businessManage',
  name: 'BusinessManage',
  component: BusinessManage
}, {
  path: '/foodManage',
  name: 'FoodManage',
  component: FoodManage
}, {
  path: '/businessOrders',
  name: 'BusinessOrders',
  component: BusinessOrders
}, {
  path: '/businessOrderDetail',
  name: 'BusinessOrderDetail',
  component: BusinessOrderDetail
}]


const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router